<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'Users\Controller\Users' => 'Users\Controller\UsersController',
        	'Users\Controller\Register' =>'Users\Controller\RegisterController',
        	'Users\Controller\Login' =>'Users\Controller\LoginController',
        	'Users\Controller\Usermanager' => 'Users\Controller\UsermanagerController',
        	'Users\Controller\Upploadmanager' => 'Users\Controller\UpploadmanagerController',
            'Users\Controller\Groupchat' => 'Users\Controller\GroupchatController',
            'Users\Controller\Offlinemail' => 'Users\Controller\OfflinemailController',
        	'Users\Controller\Mediamanager' => 'Users\Controller\MediamanagerController',
        	'Users\Controller\Search' => 'Users\Controller\SearchController',
        		'Users\Controller\Csvimpexp' => 'Users\Controller\CsvimpexpController',
        ),
    ),
    // end of controllers**********************************************************************
    'router' => array(
        'routes' => array(
            'users' => array(
                'type'    => 'Literal',
                'options' => array(
                    // Change this to something specific to your module
                    'route'    => '/users',
                    'defaults' => array(
                        // Change this value to reflect the namespace in which
                        // the controllers for your module are found
                        '__NAMESPACE__' => 'Users\Controller',
                        'controller'    => 'Users',
                        'action'        => 'index',
                    ),
                ),
                'may_terminate' => true,
                'child_routes' => array(
                    // This route is a sane default when developing a module;
                    // as you solidify the routes for your module, however,
                    // you may want to remove it and replace it with more
                    // specific routes.
                    'default' => array(
                        'type'    => 'Segment',
                        'options' => array(
                            'route'    => '/[:controller[/:action]]',
                            'constraints' => array(
                                'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
                                'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
                            ),
                            'defaults' => array(
                            ),
                            ),
                        ),
                ),	//end of child routes users
            ),//od users
                'usermanager' => array(
                		'type' => 'Segment',
                		'options' => array(
                		      'route' => '/usermanager[/:action[/:id]]',
                		      'constraints' => array(
                					'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                					'id' => '[a-zA-Z0-9_-]*',
                					),
                              'defaults' => array('controller' => 'Users\Controller\Usermanager', 'action' => 'index',
                              ),
                         ),
                   ),
        		  'login' => array(
        				'type' => 'Segment',
        				'options' => array(
        						'route' => '/login[/:action[/:id]]',
        						'constraints' => array(
        								'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
        								'id' => '[a-zA-Z0-9_-]*',
        						),
        						'defaults' => array('controller' => 'Users\Controller\Login', 'action' => 'index',
        						),
        				),
        		  ),
        		  'register' => array(
        				'type' => 'Segment',
        				'options' => array(
        						'route' => '/register[/:action[/:id]]',
        						'constraints' => array(
        								'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
        								'id' => '[a-zA-Z0-9_-]*',
        						),
        						'defaults' => array('controller' => 'Users\Controller\Register', 'action' => 'index',
        						),
        				),
        		  ),
        		  'upploadmanager' => array(
        				'type' =>  'Segment',
        				'options' => array(
        						'route' => '/upploadmanager[/:action[/:id]]',
        						'constraints' => array(
        								'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
        								//'id' => '[a-zA-Z0-9_-]*',
        						),
        						'defaults' => array('controller' => 'Users\Controller\Upploadmanager', 'action' => 'index',
        						),
        				),
        		  ),
        		/*'upploadmanager' => array(
        		 'type' =>  'Literal',//'segment',
        				'options' => array(
        						'route' => '/upploadmanager',  //[/:action[/:id]]',
        						//'constraints' => array(
        								//'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
        								//'id' => '[a-zA-Z0-9_-]*',
        						//),
        						'defaults' => array('controller' => 'Users\Controller\Upploadmanager', 'action' => 'index',
        						),
        				),
        				'may_terminate' => true,
        				'child_routes' => array(
        						// This route is a sane default when developing a module;
        						// as you solidify the routes for your module, however,
        						// you may want to remove it and replace it with more
        						// specific routes.
        						'default' => array(
        								'type'    => 'Segment',
        								'options' => array(
        										'route'    => '/[:controller[/:action[/:id]]]',
        										'constraints' => array(
        												'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
        												'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
        										),
        										'defaults' => array(
        										),
        								),
        						),
        				),
        		),*/
        		   'groupchat' => array(
        				'type' => 'Segment',
        				'options' => array(
        						'route' => '/groupchat[/:action[/:id]]',
        						'constraints' => array(
        								'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
        								'id' => '[a-zA-Z0-9_-]*',
        						),
        						'defaults' => array('controller' => 'Users\Controller\Groupchat','action' => 'index',
        						),
        				),
        		  ),
        		  'offlinemail' => array(
        				'type' => 'Segment',
        				'options' => array(
        						'route' => '/offlinemail[/:action[/:id]]',
        						'constraints' => array(
        								'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
        								'id' => '[a-zA-Z0-9_-]*',
        						),
        						'defaults' => array('controller' => 'Users\Controller\Offlinemail','action' => 'index',
        						),
        				),
        		  ),
        		  'mediamanager' => array(
        				'type' => 'Segment',
        				'options' => array(
        						'route' => '/mediamanager[/:action[/:id[/:subaction]]]',
        						'constraints' => array(
        								'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
        								'id' => '[a-zA-Z0-9_-]*',
        								'subaction' => '[a-zA-Z][a-zA-Z0-9_-]*',
        						),
        						'defaults' => array(
        								'controller' => 'Users\Controller\Mediamanager',
        								'action' => 'index',
        						),
        				),
        		   ), //end of media manager
        		   
        		'search' => array(
        				'type' => 'Segment',
        				'options' => array(
        						'route' => '/search[/:action[/:id]]',
        						'constraints' => array(
        								'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
        								'id' => '[a-zA-Z0-9_-]*',
        						),
        						'defaults' => array('controller' => 'Users\Controller\Search','action' => 'index',
        						),
        				),
        		),
        		
        		'csvexportt' => array(
        				'type' => 'Segment',
        				'options' => array(
        						'route' => '/csvexportt[/:action[/:id]]',
        						'constraints' => array(
        								'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
        								'id' => '[a-zA-Z0-9_-]*',
        						),
        						'defaults' => array('controller' => 'Users\Controller\Csvimpexp','action' => 'index',
        						),
        				),
        		),
        		'about' => array(
                		'type' => 'Literal',
                		'options' => array(
                				'route' => '/about',
                
                				'defaults' => array('controller' => 'Users\Controller\Users','action' => 'about',
                						//'template'   => 'application/pages/about',
                						// optionally set a specific layout for this page
                						//'layout'     => 'layout/some-layout',
                				),
                		),
                ),
        		'forum' => array(
        				'type' => 'Literal',
        				'options' => array(
        						'route' => '/forum',
        		
        						'defaults' => array('controller' => 'Zf2Forum\Controller\Forums',
        								'action' => 'forums',
        								//'template'   => 'application/pages/about',
        								// optionally set a specific layout for this page
        								//'layout'     => 'layout/some-layout',
        						),
        				),
        		),
        		
        		/*'store' => array(
        				'type' => 'Segment',
        				'options' => array(
        						'route' => '/store[/:action[/:id]]',
        						'constraints' => array(
        								'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
        								'id' => '[a-zA-Z0-9_-]*',
        						),
        						'defaults' => array('controller' => 'Estore\Controller\Estore','action' => 'index',
        						),
        				),
        		),*/
        		//'generateindex' => array(
        		//		'type' => 'Segment',
        		//		'options' => array(
        		//				'route' => '/generateindex[/:action[/:id]]',
        		//				'constraints' => array(
        		//						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
        		//						'id' => '[a-zA-Z0-9_-]*',
        		//				),
        		//				'defaults' => array('controller' => 'Users\Controller\Search','action' => 'generateindex',
        		//				),
        		//		),
        		//),
            ), //end of routes
    		//'di' => array(
    				/**
    				 * For security reasons we must allow
    		* our controller for the DI
    		*/
    		//		'allowed_controllers' => array(
    		//				'Application\Controller\MediamanagerController',
    		//		),
    		//		'instance' => array(
    		//				/**
    		//				 * Configure the controller
    		/* to inject WebinoImageThumb service
    		*/
    						/*'Application\Controller\MediamanagerController' => array(
    								'parameters' => array(
    										'thumbnailer' => 'WebinoImageThumb',
    								),
    						),*/
    				//),
    		//),
    ), //end of ruter
    
    'view_manager' => array(
    	'template_map' => array(
    	//'users/uploadmanager/index' => __DIR__ . '/../views/users/uploadmanager/index.phtml',
        ),
    		
    	'layout/myaccount' => __DIR__ . '/../view/layout/myaccount-layout.phtml',
    		
        'template_path_stack' => array(
            'Users' => __DIR__ . '/../view',
        ),
    	//'display_exceptions' => 'true', 
    ), //end of view
    
	'module_config' => array(
			'upload_location' => realpath(__DIR__ .'/../../../data/uploads'),
			'image_upload_location' => realpath(__DIR__ . '/../../../data/uploads_images'),
			'search_index' => realpath(__DIR__ . '/../../../data/search_index'),
	),
	
		

);
